const getTimeMessage = () => {
    let message = '';
    const hours = new Date().getHours();
    if (hours >= 6 && hours <= 9) {
        message = '上午';
    } else if (hours <= 12) {
        message = '中午';
    } else if (hours <= 18) {
        message = '下午'
    } else {
        message = '晚上'
    }
    return message;
}

export { getTimeMessage }